package application.core;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.image.BufferedImage;

import javax.swing.JPanel;

public class EditorMapArea extends JPanel{
	private static final long serialVersionUID = 1L;

	BufferedImage bufferedImage;
	
	public EditorMapArea(int width, int height){
		super();
		setVisible(true);
		setOpaque(true);
		setSize(width, height);
	}
	
	public void paint(Graphics g){
		g.setColor(Color.red);
		g.fillRect(0, 0, getWidth(), getHeight());
		if(bufferedImage != null){
			g.drawImage(bufferedImage, 0, 0, null);
		}
	}
}
